<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>WebViewJavascriptBridge</title>
    <link rel="stylesheet" href="index.css">
    <script src="hgmsdk.js"></script>
    <script src="index.js"></script>
    <meta name="viewport" content="width=device-width,height=device-height,inital-scale=1.0,maximum-scale=1.0,user-scalable=no;">
</head>
<body>

<h2>WKWebViewJavascriptBridge</h2>

<div class="title">导航栏相关</div>
<div class="content">
    <input id="titleInput" placeholder="请输入要修改的标题">
    <button class="button" id="navbtn1" onclick="changeNavTitle()">changeNavTitle</button> 修改导航栏标题
    <br>
    <button class="button" id="navbtn2" onclick="changeNavColor()">changeNavColor</button> 修改导航栏颜色(随机颜色)
</div>

<div class="title">调用相机拍照</div>
<div class="content">
    <button class="button" id="picturebtn1" onclick="getPhotoFormPhone()">getPhotoFormPhone</button> 调用相机拍照
    <img id="imageShow">
</div>

<div class="title">扫描二维码</div>
<div class="content">
    <button class="button" id="qrbtn1" onclick="sacnQRcode()">sacnQRcode</button> 扫描二维码
</div>





</body>
</html>